#pragma once
//#include "PatientEvent.h"
#include "LFEventHandler.h"
#include "Reactor.h"
#include "SOCK_Acceptor.h"
#include "time.h"


namespace Network  {

	class PatientEventHandler : public EventHandler {
		protected:
			SOCK_Stream peerStream;
			Reactor *reactor;
			bool status;

		public:
			PatientEventHandler();
			PatientEventHandler(const SOCK_Stream &stream);
			virtual void HandleEvent (HANDLE handle, EventType eventType);
			virtual HANDLE GetHandle();
			bool IsRunning();

			~PatientEventHandler() {  } 

			//PatientEventHandler(LFThreadPool* threadPool_);
			//PatientEventHandler(const INET_Addr& ipAddress);
			//PatientEventHandler(const INET_Addr& ipAddress, LFThreadPool* threadPool_);
			
			//virtual std::string handle(unsigned char* data);
			//virtual SOCK_Acceptor getHandle() { return *listener; };
			//virtual EventType getType(){return PATIENT_EVENT;}
	};
}